<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.5"/>
<title>GameEngine: MainState Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">GameEngine
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.5 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('class_main_state.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Macros</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="#pri-static-attribs">Static Private Attributes</a> &#124;
<a href="class_main_state-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">MainState Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="_main_state_8h_source.html">MainState.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for MainState:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_main_state.png" usemap="#MainState_map" alt=""/>
  <map id="MainState_map" name="MainState_map">
<area href="class_state_machine.html" alt="StateMachine" shape="rect" coords="0,0,89,24"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a77c93b0c85d8fc62711a51d041e06154"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_main_state.html#a77c93b0c85d8fc62711a51d041e06154">MainState</a> (void)</td></tr>
<tr class="separator:a77c93b0c85d8fc62711a51d041e06154"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa0ac2df6fc0e12ee4afa6713b2534c74"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_main_state.html#aa0ac2df6fc0e12ee4afa6713b2534c74">~MainState</a> (void)</td></tr>
<tr class="separator:aa0ac2df6fc0e12ee4afa6713b2534c74"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3f5551acd1ce1137de961a91e89983be"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_main_state.html#a3f5551acd1ce1137de961a91e89983be">updateGame</a> (int timer)</td></tr>
<tr class="separator:a3f5551acd1ce1137de961a91e89983be"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ade0581557833ba68939eb7ac7bba7854"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_main_state.html#ade0581557833ba68939eb7ac7bba7854">renderGame</a> (float interpolation)</td></tr>
<tr class="separator:ade0581557833ba68939eb7ac7bba7854"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab4e535f65024f7e0d9fbada13bc7b641"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_main_state.html#ab4e535f65024f7e0d9fbada13bc7b641">handleInput</a> (GLFWwindow *window)</td></tr>
<tr class="separator:ab4e535f65024f7e0d9fbada13bc7b641"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab3319cf800410b4a3a5aed19ce242f21"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_main_state.html#ab3319cf800410b4a3a5aed19ce242f21">loadShader</a> (const char *vertex, const char *fragment)</td></tr>
<tr class="separator:ab3319cf800410b4a3a5aed19ce242f21"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a87eb6bb57218c385762b78e069e7ff35"><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_main_state.html#a87eb6bb57218c385762b78e069e7ff35">stateChanger</a> ()</td></tr>
<tr class="separator:a87eb6bb57218c385762b78e069e7ff35"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aab4b71831fb341d73f85ae43a5587f65"><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_main_state.html#aab4b71831fb341d73f85ae43a5587f65">getKeyCode</a> ()</td></tr>
<tr class="separator:aab4b71831fb341d73f85ae43a5587f65"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a94ee0dc0f5ec2fd60e08b9a48d09b4ab"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_main_state.html#a94ee0dc0f5ec2fd60e08b9a48d09b4ab">reInit</a> ()</td></tr>
<tr class="separator:a94ee0dc0f5ec2fd60e08b9a48d09b4ab"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa4959f936beed6ef182d3e1ddf97cbfd"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_main_state.html#aa4959f936beed6ef182d3e1ddf97cbfd">init</a> ()</td></tr>
<tr class="separator:aa4959f936beed6ef182d3e1ddf97cbfd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1e91a9046ec6f260e1d39583ca89dfc6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_main_state.html#a1e91a9046ec6f260e1d39583ca89dfc6">initObjects</a> ()</td></tr>
<tr class="separator:a1e91a9046ec6f260e1d39583ca89dfc6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_state_machine"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_state_machine')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="class_state_machine.html">StateMachine</a></td></tr>
<tr class="memitem:ad04e720a963e34339a125c5ff064c09b inherit pub_methods_class_state_machine"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_machine.html#ad04e720a963e34339a125c5ff064c09b">StateMachine</a> (void)</td></tr>
<tr class="separator:ad04e720a963e34339a125c5ff064c09b inherit pub_methods_class_state_machine"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a88c47bc8b8ab361e46740a35a64ce795 inherit pub_methods_class_state_machine"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_machine.html#a88c47bc8b8ab361e46740a35a64ce795">~StateMachine</a> (void)</td></tr>
<tr class="separator:a88c47bc8b8ab361e46740a35a64ce795 inherit pub_methods_class_state_machine"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:a85be15f12ed6ad2c1e1938e00bf305a2"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_main_state.html#a85be15f12ed6ad2c1e1938e00bf305a2">hasBeenLoaded</a></td></tr>
<tr class="separator:a85be15f12ed6ad2c1e1938e00bf305a2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9bbe42adad4936332629f796f588dd6f"><td class="memItemLeft" align="right" valign="top">GLuint&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_main_state.html#a9bbe42adad4936332629f796f588dd6f">VBO</a></td></tr>
<tr class="separator:a9bbe42adad4936332629f796f588dd6f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a55f719888c879d2cd5d30be07612a992"><td class="memItemLeft" align="right" valign="top">GLuint&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_main_state.html#a55f719888c879d2cd5d30be07612a992">VBO2</a></td></tr>
<tr class="separator:a55f719888c879d2cd5d30be07612a992"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abb86c5bc8e54aca911c6da04b127727c"><td class="memItemLeft" align="right" valign="top">GLuint&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_main_state.html#abb86c5bc8e54aca911c6da04b127727c">VAO</a></td></tr>
<tr class="separator:abb86c5bc8e54aca911c6da04b127727c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac518c71a111d277141ee11dffcc611a6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_load_shader.html">LoadShader</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_main_state.html#ac518c71a111d277141ee11dffcc611a6">loadshader</a></td></tr>
<tr class="separator:ac518c71a111d277141ee11dffcc611a6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acd6f7c2997796f73d23e47b80be302b6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_matrix4f.html">Matrix4f</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_main_state.html#acd6f7c2997796f73d23e47b80be302b6">world</a></td></tr>
<tr class="separator:acd6f7c2997796f73d23e47b80be302b6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a147d4f1158e786b3632ff8db2262bcd9"><td class="memItemLeft" align="right" valign="top">GLuint&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_main_state.html#a147d4f1158e786b3632ff8db2262bcd9">ShaderProgram</a></td></tr>
<tr class="separator:a147d4f1158e786b3632ff8db2262bcd9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af70ad331225b914157e9f21ca7f4d862"><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_main_state.html#af70ad331225b914157e9f21ca7f4d862">changeState</a></td></tr>
<tr class="separator:af70ad331225b914157e9f21ca7f4d862"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-static-attribs"></a>
Static Private Attributes</h2></td></tr>
<tr class="memitem:a5822bf0c89e8f0767e8784b807fb7220"><td class="memItemLeft" align="right" valign="top">static const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_main_state.html#a5822bf0c89e8f0767e8784b807fb7220">pVS</a></td></tr>
<tr class="separator:a5822bf0c89e8f0767e8784b807fb7220"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a04ea113a6e0865225d2251e49525c4e9"><td class="memItemLeft" align="right" valign="top">static const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_main_state.html#a04ea113a6e0865225d2251e49525c4e9">pFS</a></td></tr>
<tr class="separator:a04ea113a6e0865225d2251e49525c4e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa75e78913b3243093c8658a1bd02fc3f"><td class="memItemLeft" align="right" valign="top">static const long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_main_state.html#aa75e78913b3243093c8658a1bd02fc3f">keycode</a> = 200000000L</td></tr>
<tr class="separator:aa75e78913b3243093c8658a1bd02fc3f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock">
<p>Definition at line <a class="el" href="_main_state_8h_source.html#l00017">17</a> of file <a class="el" href="_main_state_8h_source.html">MainState.h</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a77c93b0c85d8fc62711a51d041e06154"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">MainState::MainState </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="_main_state_8cpp_source.html#l00037">37</a> of file <a class="el" href="_main_state_8cpp_source.html">MainState.cpp</a>.</p>

<p>References <a class="el" href="_main_state_8h_source.html#l00058">changeState</a>, <a class="el" href="_main_state_8h_source.html#l00041">hasBeenLoaded</a>, <a class="el" href="_main_state_8h_source.html#l00049">loadshader</a>, <a class="el" href="_linked_list_8h_source.html#l00012">NULL</a>, <a class="el" href="_main_state_8h_source.html#l00053">ShaderProgram</a>, <a class="el" href="_main_state_8h_source.html#l00046">VAO</a>, <a class="el" href="_main_state_8h_source.html#l00044">VBO</a>, <a class="el" href="_main_state_8h_source.html#l00045">VBO2</a>, and <a class="el" href="_main_state_8h_source.html#l00051">world</a>.</p>

</div>
</div>
<a class="anchor" id="aa0ac2df6fc0e12ee4afa6713b2534c74"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">MainState::~MainState </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="_main_state_8cpp_source.html#l00052">52</a> of file <a class="el" href="_main_state_8cpp_source.html">MainState.cpp</a>.</p>

<p>References <a class="el" href="_main_state_8h_source.html#l00053">ShaderProgram</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="aab4b71831fb341d73f85ae43a5587f65"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">long MainState::getKeyCode </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Implements <a class="el" href="class_state_machine.html#a39949e8a92cdca4854ac5394d6e0ba42">StateMachine</a>.</p>

<p>Definition at line <a class="el" href="_main_state_8cpp_source.html#l00172">172</a> of file <a class="el" href="_main_state_8cpp_source.html">MainState.cpp</a>.</p>

<p>References <a class="el" href="_main_state_8h_source.html#l00056">keycode</a>.</p>

</div>
</div>
<a class="anchor" id="ab4e535f65024f7e0d9fbada13bc7b641"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void MainState::handleInput </td>
          <td>(</td>
          <td class="paramtype">GLFWwindow *&#160;</td>
          <td class="paramname"><em>window</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Implements <a class="el" href="class_state_machine.html#a2f89dc242f85ca11d6eb400ffa6499bf">StateMachine</a>.</p>

<p>Definition at line <a class="el" href="_main_state_8cpp_source.html#l00073">73</a> of file <a class="el" href="_main_state_8cpp_source.html">MainState.cpp</a>.</p>

<p>References <a class="el" href="_main_state_8h_source.html#l00058">changeState</a>.</p>

</div>
</div>
<a class="anchor" id="aa4959f936beed6ef182d3e1ddf97cbfd"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void MainState::init </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Implements <a class="el" href="class_state_machine.html#a603ac1e07086d9b031f47ce1fe3b87b5">StateMachine</a>.</p>

<p>Definition at line <a class="el" href="_main_state_8cpp_source.html#l00062">62</a> of file <a class="el" href="_main_state_8cpp_source.html">MainState.cpp</a>.</p>

<p>References <a class="el" href="_main_state_8cpp_source.html#l00069">initObjects()</a>, <a class="el" href="_main_state_8cpp_source.html#l00056">loadShader()</a>, <a class="el" href="_main_state_8h_source.html#l00049">loadshader</a>, <a class="el" href="_main_state_8h_source.html#l00038">pFS</a>, <a class="el" href="_main_state_8h_source.html#l00037">pVS</a>, and <a class="el" href="_main_state_8h_source.html#l00053">ShaderProgram</a>.</p>

<p>Referenced by <a class="el" href="_main_state_8cpp_source.html#l00160">reInit()</a>.</p>

</div>
</div>
<a class="anchor" id="a1e91a9046ec6f260e1d39583ca89dfc6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void MainState::initObjects </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="_main_state_8cpp_source.html#l00069">69</a> of file <a class="el" href="_main_state_8cpp_source.html">MainState.cpp</a>.</p>

<p>References <a class="el" href="_main_state_8h_source.html#l00051">world</a>.</p>

<p>Referenced by <a class="el" href="_main_state_8cpp_source.html#l00062">init()</a>.</p>

</div>
</div>
<a class="anchor" id="ab3319cf800410b4a3a5aed19ce242f21"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void MainState::loadShader </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>vertex</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>fragment</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="_main_state_8cpp_source.html#l00056">56</a> of file <a class="el" href="_main_state_8cpp_source.html">MainState.cpp</a>.</p>

<p>References <a class="el" href="_load_shader_8cpp_source.html#l00050">LoadShader::compileShaders()</a>, <a class="el" href="_main_state_8h_source.html#l00049">loadshader</a>, and <a class="el" href="_main_state_8h_source.html#l00053">ShaderProgram</a>.</p>

<p>Referenced by <a class="el" href="_main_state_8cpp_source.html#l00062">init()</a>.</p>

</div>
</div>
<a class="anchor" id="a94ee0dc0f5ec2fd60e08b9a48d09b4ab"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void MainState::reInit </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Implements <a class="el" href="class_state_machine.html#aec67074ebf4261300ba77d216ac156bd">StateMachine</a>.</p>

<p>Definition at line <a class="el" href="_main_state_8cpp_source.html#l00160">160</a> of file <a class="el" href="_main_state_8cpp_source.html">MainState.cpp</a>.</p>

<p>References <a class="el" href="_main_state_8h_source.html#l00058">changeState</a>, <a class="el" href="_main_state_8h_source.html#l00041">hasBeenLoaded</a>, <a class="el" href="_main_state_8cpp_source.html#l00062">init()</a>, and <a class="el" href="_main_state_8h_source.html#l00053">ShaderProgram</a>.</p>

</div>
</div>
<a class="anchor" id="ade0581557833ba68939eb7ac7bba7854"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void MainState::renderGame </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>interpolation</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Implements <a class="el" href="class_state_machine.html#a0fabb1a7bbbda3158636cec08623a66e">StateMachine</a>.</p>

<p>Definition at line <a class="el" href="_main_state_8cpp_source.html#l00088">88</a> of file <a class="el" href="_main_state_8cpp_source.html">MainState.cpp</a>.</p>

<p>References <a class="el" href="_main_state_8h_source.html#l00046">VAO</a>.</p>

</div>
</div>
<a class="anchor" id="a87eb6bb57218c385762b78e069e7ff35"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">long MainState::stateChanger </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Implements <a class="el" href="class_state_machine.html#aab3dd552f209ece70f8913a5fd4449db">StateMachine</a>.</p>

<p>Definition at line <a class="el" href="_main_state_8cpp_source.html#l00156">156</a> of file <a class="el" href="_main_state_8cpp_source.html">MainState.cpp</a>.</p>

<p>References <a class="el" href="_main_state_8h_source.html#l00058">changeState</a>.</p>

</div>
</div>
<a class="anchor" id="a3f5551acd1ce1137de961a91e89983be"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void MainState::updateGame </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>timer</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Implements <a class="el" href="class_state_machine.html#a6ed723b00e78eac46515b636c5a8481e">StateMachine</a>.</p>

<p>Definition at line <a class="el" href="_main_state_8cpp_source.html#l00084">84</a> of file <a class="el" href="_main_state_8cpp_source.html">MainState.cpp</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a class="anchor" id="af70ad331225b914157e9f21ca7f4d862"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">long MainState::changeState</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="_main_state_8h_source.html#l00058">58</a> of file <a class="el" href="_main_state_8h_source.html">MainState.h</a>.</p>

<p>Referenced by <a class="el" href="_main_state_8cpp_source.html#l00073">handleInput()</a>, <a class="el" href="_main_state_8cpp_source.html#l00037">MainState()</a>, <a class="el" href="_main_state_8cpp_source.html#l00160">reInit()</a>, and <a class="el" href="_main_state_8cpp_source.html#l00156">stateChanger()</a>.</p>

</div>
</div>
<a class="anchor" id="a85be15f12ed6ad2c1e1938e00bf305a2"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool MainState::hasBeenLoaded</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="_main_state_8h_source.html#l00041">41</a> of file <a class="el" href="_main_state_8h_source.html">MainState.h</a>.</p>

<p>Referenced by <a class="el" href="_main_state_8cpp_source.html#l00037">MainState()</a>, and <a class="el" href="_main_state_8cpp_source.html#l00160">reInit()</a>.</p>

</div>
</div>
<a class="anchor" id="aa75e78913b3243093c8658a1bd02fc3f"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const long MainState::keycode = 200000000L</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="_main_state_8h_source.html#l00056">56</a> of file <a class="el" href="_main_state_8h_source.html">MainState.h</a>.</p>

<p>Referenced by <a class="el" href="_main_state_8cpp_source.html#l00172">getKeyCode()</a>.</p>

</div>
</div>
<a class="anchor" id="ac518c71a111d277141ee11dffcc611a6"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_load_shader.html">LoadShader</a>* MainState::loadshader</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="_main_state_8h_source.html#l00049">49</a> of file <a class="el" href="_main_state_8h_source.html">MainState.h</a>.</p>

<p>Referenced by <a class="el" href="_main_state_8cpp_source.html#l00062">init()</a>, <a class="el" href="_main_state_8cpp_source.html#l00056">loadShader()</a>, and <a class="el" href="_main_state_8cpp_source.html#l00037">MainState()</a>.</p>

</div>
</div>
<a class="anchor" id="a04ea113a6e0865225d2251e49525c4e9"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const char * MainState::pFS</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<b>Initial value:</b><div class="fragment"><div class="line">= <span class="stringliteral">&quot;                                                      \n\</span></div>
<div class="line"><span class="stringliteral">#version 330                                                                      \n\</span></div>
<div class="line"><span class="stringliteral">                                                                                    \n\</span></div>
<div class="line"><span class="stringliteral">                                                                                    \n\</span></div>
<div class="line"><span class="stringliteral">out vec3 FragColor;                                                                 \n\</span></div>
<div class="line"><span class="stringliteral">                                                                                    \n\</span></div>
<div class="line"><span class="stringliteral">void main()                                                                         \n\</span></div>
<div class="line"><span class="stringliteral">{                                                                                   \n\</span></div>
<div class="line"><span class="stringliteral">    FragColor = vec3(0.2,0.6,0.2);                                                  \n\</span></div>
<div class="line"><span class="stringliteral">}&quot;</span></div>
</div><!-- fragment -->
<p>Definition at line <a class="el" href="_main_state_8h_source.html#l00038">38</a> of file <a class="el" href="_main_state_8h_source.html">MainState.h</a>.</p>

<p>Referenced by <a class="el" href="_main_state_8cpp_source.html#l00062">init()</a>.</p>

</div>
</div>
<a class="anchor" id="a5822bf0c89e8f0767e8784b807fb7220"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const char * MainState::pVS</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<b>Initial value:</b><div class="fragment"><div class="line">= <span class="stringliteral">&quot;                                                      \n\</span></div>
<div class="line"><span class="stringliteral">#version 330                                                                       \n\</span></div>
<div class="line"><span class="stringliteral">                                                                                    \n\</span></div>
<div class="line"><span class="stringliteral">layout (location = 0) in vec3 position;                                             \n\</span></div>
<div class="line"><span class="stringliteral">                                                                                    \n\</span></div>
<div class="line"><span class="stringliteral">                                                                                    \n\</span></div>
<div class="line"><span class="stringliteral">void main()                                                                         \n\</span></div>
<div class="line"><span class="stringliteral">{                                                                                   \n\</span></div>
<div class="line"><span class="stringliteral">    gl_Position = vec4(position, 1.0);                                              \n\</span></div>
<div class="line"><span class="stringliteral">}&quot;</span></div>
</div><!-- fragment -->
<p>Definition at line <a class="el" href="_main_state_8h_source.html#l00037">37</a> of file <a class="el" href="_main_state_8h_source.html">MainState.h</a>.</p>

<p>Referenced by <a class="el" href="_main_state_8cpp_source.html#l00062">init()</a>.</p>

</div>
</div>
<a class="anchor" id="a147d4f1158e786b3632ff8db2262bcd9"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">GLuint MainState::ShaderProgram</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="_main_state_8h_source.html#l00053">53</a> of file <a class="el" href="_main_state_8h_source.html">MainState.h</a>.</p>

<p>Referenced by <a class="el" href="_main_state_8cpp_source.html#l00062">init()</a>, <a class="el" href="_main_state_8cpp_source.html#l00056">loadShader()</a>, <a class="el" href="_main_state_8cpp_source.html#l00037">MainState()</a>, <a class="el" href="_main_state_8cpp_source.html#l00160">reInit()</a>, and <a class="el" href="_main_state_8cpp_source.html#l00052">~MainState()</a>.</p>

</div>
</div>
<a class="anchor" id="abb86c5bc8e54aca911c6da04b127727c"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">GLuint MainState::VAO</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="_main_state_8h_source.html#l00046">46</a> of file <a class="el" href="_main_state_8h_source.html">MainState.h</a>.</p>

<p>Referenced by <a class="el" href="_main_state_8cpp_source.html#l00037">MainState()</a>, and <a class="el" href="_main_state_8cpp_source.html#l00088">renderGame()</a>.</p>

</div>
</div>
<a class="anchor" id="a9bbe42adad4936332629f796f588dd6f"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">GLuint MainState::VBO</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="_main_state_8h_source.html#l00044">44</a> of file <a class="el" href="_main_state_8h_source.html">MainState.h</a>.</p>

<p>Referenced by <a class="el" href="_main_state_8cpp_source.html#l00037">MainState()</a>.</p>

</div>
</div>
<a class="anchor" id="a55f719888c879d2cd5d30be07612a992"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">GLuint MainState::VBO2</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="_main_state_8h_source.html#l00045">45</a> of file <a class="el" href="_main_state_8h_source.html">MainState.h</a>.</p>

<p>Referenced by <a class="el" href="_main_state_8cpp_source.html#l00037">MainState()</a>.</p>

</div>
</div>
<a class="anchor" id="acd6f7c2997796f73d23e47b80be302b6"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_matrix4f.html">Matrix4f</a>* MainState::world</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="_main_state_8h_source.html#l00051">51</a> of file <a class="el" href="_main_state_8h_source.html">MainState.h</a>.</p>

<p>Referenced by <a class="el" href="_main_state_8cpp_source.html#l00069">initObjects()</a>, and <a class="el" href="_main_state_8cpp_source.html#l00037">MainState()</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>C:/Users/Axel/Desktop/informatica/Projects/Workspace C++/Game Engine/src/States/<a class="el" href="_main_state_8h_source.html">MainState.h</a></li>
<li>C:/Users/Axel/Desktop/informatica/Projects/Workspace C++/Game Engine/src/States/<a class="el" href="_main_state_8cpp_source.html">MainState.cpp</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_main_state.html">MainState</a></li>
    <li class="footer">Generated on Fri Dec 13 2013 19:38:40 for GameEngine by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.5 </li>
  </ul>
</div>
</body>
</html>
